package org.dromara.common.core.enums;

import org.dromara.common.core.utils.StringUtils;


public enum CommunityEnum {

    WBY("370883002013", "文博苑社区", "wby"),
    MZH("1654037232114892800", "孟子湖社区", "mzh"),
    FSL("370883003016", "凫山路社区", "fsl"),
    BD("1654337915741437952", "鲍店社区", "bd"),
    HJYY("370883001014", "鸿景雅苑社区", "hjyy"),
    DH("370883002007", "大胡社区", "dh"),
    NG("370883002006", "南关社区", "ng"),
    QT("370883106001", "前唐社区", "qt"),
    MZ("370883002008", "马庄社区", "mz"),
    TWH("370883002011", "唐王湖社区", "twh"),
    ZZ("370883003012", "周庄社区", "zz"),
    HL("370883002009", "华龙社区", "hl"),
    HX("370883001401", "红星社区", "hx"),
    YJ("370883001015", "燕京社区", "yj"),
    BG("370883001005", "北关社区", "bg"),
    JY("370883001009", "建业社区", "jy"),
    YQ("370883002014", "玉泉社区", "yq"),
    QX("1654366166832545792", "泉兴社区", "qx"),
    TS("370883001007", "铁山社区", "ts"),
    LS("370883001013", "龙山社区", "ls"),
    SJZ("370883003011", "石家庄社区", "sjz"),
    XL("370883002016", "兴隆社区", "xl"),
    MENGZHUANG("370883001004", "孟庄社区", "mengzhaung"),
    XG("370883001006", "西关社区", "xg"),
    SQ("370883002017", "圣泉社区", "sq"),
    GZ("370883002012", "郭庄社区", "gz"),
    DG("370883002005", "东关社区", "dg"),
    TH("370883001403", "泰和社区", "th"),
    CP("370883001012", "昌平社区", "cp"),
    TCK("1654336646075285504", "唐村矿社区", "tck"),
    HY("370883003014", "海悦社区", "hy"),
    FY("370883001404", "福悦社区", "fy"),
    FHS("370883001008", "凤凰山社区", "fhs"),
    TX("1654378343018692608", "铁西社区", "tx"),
    XXW("370883002015", "小西苇社区", "xxw"),
    WS("370883003015", "文圣社区", "ws"),
    SLY("370883003001", "三里营社区", "sly"),
    XIANGLI("370883003013", "巷里社区", "xiangli"),
    SY("370883003017", "圣源社区", "sy"),
    TZ("370883003006", "田庄社区", "tz"),
    DT("1654328999108313088", "东滩社区", "dt"),
    QMHY("1654375299644293120", "前庙户营社区", "qmhy"),
    ZQS("370883001402", "朱雀山社区", "zqs"),
    HMHY("370883003010", "后庙户营社区", "hmhy"),
    WLY("370883104004", "五里社区", "wly"),
    DS("1654332475670429696", "东沙社区", "ds"),
    NTK("1654335550330142720", "南屯矿社区", "ntk"),
    BSK("1654333507217555456", "北宿矿社区", "bsk");

    private String community_name;
    private String community_id;
    private String community_database;

    private CommunityEnum(String communityId, String communityName, String communityDatabase) {
        this.community_id = communityId;
        this.community_name = communityName;
        this.community_database = communityDatabase;
    }

    public static CommunityEnum getCommunity(String communityId) {
        for (CommunityEnum value : values()) {
            if (StringUtils.contains(communityId, value.community_id)) {
                return value;
            }
        }
        throw new RuntimeException("'FormatsType' not found By " + communityId);
    }
}
